package com.palazzisoft.balonpie.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.client.RestTemplate;

import com.palazzisoft.balonpie.entities.User;

@Controller
public class TestRest {
	
	@RequestMapping(value = "/test/rest.htm")
	public void  testRequest() {
		RestTemplate restTemplate = new RestTemplate();
		User user = restTemplate.getForObject("http://localhost:8080/balonpie/api/restest.htm", User.class);
		
		System.out.println(user);
	}
}
